using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using ProtectThePie;
using Microsoft.Xna.Framework;

namespace ThreeThingGame.General_Classes
{
    public class Bullet : Body
    {

        public Bullet(Vector2 position, float angle, Vector2 speed)
        {
            this.position = position;
            this.angle = angle;
            this.speed = speed;
            this.radius = 16;

            this.sprite = new Sprite(Game1.bulletTexture, position, radius, 0);
            sprite.AddTexel(0, 0, 1);
        }

        public void Update()
        {

        }

        public void Draw(SpriteBatch spriteBatch)
        {
            sprite.Draw(spriteBatch);
        }

        public bool CheckHitAlien(Vector2 alienPosition)
        {
            if (Contains(alienPosition)) return true;
            else return false;
        }
    }
}
